package com.zero.mms.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@Table(name = "t_salary_item")
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"}) 
public class SalaryItem {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "salary_item_id")
	private Integer salaryItemId;
	
	@Column(name = "salary_item_abbr")
	private String salaryItemAbbr;
	
	@Column(name = "salary_item_name")
	private String salaryItemName;
	
	@Column(name = "salary_item_type")
	private String salaryItemType;
	
	@Column(name = "salary_show")
	private String show;
	
	@Column(name = "salary_cal")
	private String salaryCal;
	
	@Column(name = "salary_order")
	private Integer salaryOrder;
	
	@Column(name = "salary_add_item")
	private String salaryAddItem;

	@Column(name = "salary_memo")
	private String salaryMemo;
	
	@Transient
	private String cal1;
	
	@Transient
	private String calOp;
	
	@Transient
	private String cal2;
	
	public SalaryItem(){}

	public Integer getSalaryItemId() {
		return salaryItemId;
	}

	public void setSalaryItemId(Integer salaryItemId) {
		this.salaryItemId = salaryItemId;
	}

	public String getSalaryItemAbbr() {
		return salaryItemAbbr;
	}

	public void setSalaryItemAbbr(String salaryItemAbbr) {
		this.salaryItemAbbr = salaryItemAbbr;
	}

	public String getSalaryItemName() {
		return salaryItemName;
	}

	public void setSalaryItemName(String salaryItemName) {
		this.salaryItemName = salaryItemName;
	}

	public String getSalaryItemType() {
		return salaryItemType;
	}

	public void setSalaryItemType(String salaryItemType) {
		this.salaryItemType = salaryItemType;
	}

	public String getShow() {
		return show;
	}

	public void setShow(String show) {
		this.show = show;
	}

	public String getSalaryCal() {
		return salaryCal;
	}

	public void setSalaryCal(String salaryCal) {
		this.salaryCal = salaryCal;
	}

	public Integer getSalaryOrder() {
		return salaryOrder;
	}

	public void setSalaryOrder(Integer salaryOrder) {
		this.salaryOrder = salaryOrder;
	}

	public String getSalaryAddItem() {
		return salaryAddItem;
	}

	public void setSalaryAddItem(String salaryAddItem) {
		this.salaryAddItem = salaryAddItem;
	}

	public String getSalaryMemo() {
		return salaryMemo;
	}

	public void setSalaryMemo(String salaryMemo) {
		this.salaryMemo = salaryMemo;
	}
	
	public String getCal1() {
		return cal1;
	}

	public void setCal1(String cal1) {
		this.cal1 = cal1;
	}

	public String getCalOp() {
		return calOp;
	}

	public void setCalOp(String calOp) {
		this.calOp = calOp;
	}

	public String getCal2() {
		return cal2;
	}

	public void setCal2(String cal2) {
		this.cal2 = cal2;
	}

	@Override
	public String toString() {
		return "SalaryItem [salaryItemId=" + salaryItemId + ", salaryItemAbbr="
				+ salaryItemAbbr + ", salaryItemName=" + salaryItemName
				+ ", salaryItemType=" + salaryItemType + ", show=" + show
				+ ", salaryCal=" + salaryCal + ", salaryOrder=" + salaryOrder
				+ ", salaryAddItem=" + salaryAddItem + ", salaryMemo="
				+ salaryMemo + ", cal1=" + cal1 + ", calOp=" + calOp
				+ ", cal2=" + cal2 + "]";
	}
	
}
